package com.wyt.design.designmodel.strategy;

/**
 * @author weiyatong
 * @version 1.0
 * @date 2021/6/27 下午7:15
 * @describe 策略模式管理者
 */
public class MallardDuck extends Duck {
    public MallardDuck() {
        flyBehavior = new FlyWithWings();

    }

    public void display() {
        flyBehavior.fly();

    }
}
